package cn.jdy.lhkgaj.entity;

import cn.jdy.common.bo.BaseEntry;
import cn.jdy.platform.entity.ConfValue;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import java.io.Serializable;

/**
 * @desc   东津公安局新闻实体类 
 * @author ningqian
 * @date   2016-10-26
 */
@Entity
public class LhkgajNews extends BaseEntry implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)//根据数据库自动适配 mysql默认自增
	private Long id;        //主键
	private String title;      //标题
	private String author;      //作者
	@Column(columnDefinition = "longtext")
	private String context;      //内容
	private String summary;      //摘要
	private String keyword;      //关键词
	private String originAddress;  //来源
	@Column(updatable = false) // 第一次增加之后不可修改
	private String userid;      //发布人
	private String username;    //发布人
	private Integer readTimes;    //阅读次数
	private Integer goodtimes;    //是否显示红头文件标志位
	private String imgUrl;      //封面图片地址
	private String status;      //状态 0：无效/未审核，1：有效/审核通过/未复签，2：审核不过, 3: 置顶（每一分类仅一条消息能被置顶），4：已复签
	//新增属性
	private String openStatus;
//		文件公开属性--5：主动公开，6：申请公开，7：不予公开
	private String department; //投稿部门
//		private String[] locations=new String[13];; //投稿所在辖区
	private String falseCreateTime;//假时间
	private String depars;//将部门由数组转换成字符串
	private String transforms;//是否写入Associations和RemoteAssociations,已写设置为1，

	//市局文件、简报调研
	private String fileTypes;  //文件模板 1东津公发 2东津公党委 3其他
//	private String bulletinID;//简报编号
//	private String isSigned;//签发人
//	private String isChecked;//核稿人
//	private String isHeld;//承办人
	
	//新增URL字段
	private String isURL;//如果URL为空，跳转show-;如果不为空，跳转对应URL
	@Column(columnDefinition="varchar(255) default '0'")
	private String topTime;// 顶置日期
	private String isNews;// 是否加入new图标
	
	private String beTopString;//置顶：0-选择；1：置顶
	private String isRed;//文章标题是否标红：0-否；1-是
	private String isSignNews; //文章是否需要签收 0-不需要签收，1-需要签收
	private String signStatus;  //状态 0：未签收，1：已签收
	private String signDepartment; //东津公安分局签收单位（东津公安局签收字段）
	
	private String teams;      //支队数目1,2,3,4,5;
	//需要签收单位-每个单元对应一个签收单位，有46+新增3个+zhddk换成zhzx=49+暂不用jymsk；
	private String[] associations;
	//每个单元有值即为需要签收，无值则不需要签收
	private String[] assocGrops=new String[4];//4个签收单位群
	private String iscolums;      //是否加入到公告栏    0-否 ，1-加入
	private String iseverymouth;      //是否加入每月之星    0-否 ，1-加入
	
	private String isarticle;      //是否从投稿管理产生的数据
	private String isexecl1;
	private String isexecl2;
	private String xlsUrl;
	
	private String value1;
	private String value2;
	private String value3;
	private String value4;
	private String value5;
	private String value6;
	private String value7;
	private String value8;
	private String value9;
	private String value10;
	private String value11;
	private String value12;
	private String value13;
	private String value14;
	private String value15;
	private String value16;
	private String value17;
	private String value18;
	private String value19;
	private String value20;
	private String value21;
	private String value22;
	private String value23;
	private String value24;
	private String value25;
	private String value26;
	private String value27;
	private String value28;
	private String value29;
	private String value30;
	private String value31;
	private String value32;
	private String value33;
	private String value34;
	private String value35;
	private String value36;
	private String value37;
	private String value38;
	private String value39;
	private String value40;
	private String value41;
	private String value42;
	private String value43;
	private String value44;
	private String value45;
	private String value46;
	private String value47;
	private String value48;
	private String value49;
	private String value50;
	private String value51;
	private String value52;
	private String value53;

	
	

	public String getValue52() {
		return value52;
	}

	public void setValue52(String value52) {
		this.value52 = value52;
	}

	public String getValue53() {
		return value53;
	}

	public void setValue53(String value53) {
		this.value53 = value53;
	}

	public String getValue51() {
		return value51;
	}

	public void setValue51(String value51) {
		this.value51 = value51;
	}

	
	public String getValue41() {
		return value41;
	}

	public void setValue41(String value41) {
		this.value41 = value41;
	}

	public String getValue42() {
		return value42;
	}

	public void setValue42(String value42) {
		this.value42 = value42;
	}

	public String getValue43() {
		return value43;
	}

	public void setValue43(String value43) {
		this.value43 = value43;
	}

	public String getValue44() {
		return value44;
	}

	public void setValue44(String value44) {
		this.value44 = value44;
	}

	public String getValue45() {
		return value45;
	}

	public void setValue45(String value45) {
		this.value45 = value45;
	}

	public String getValue46() {
		return value46;
	}

	public void setValue46(String value46) {
		this.value46 = value46;
	}

	public String getValue47() {
		return value47;
	}

	public void setValue47(String value47) {
		this.value47 = value47;
	}

	public String getValue48() {
		return value48;
	}

	public void setValue48(String value48) {
		this.value48 = value48;
	}

	public String getValue49() {
		return value49;
	}

	public void setValue49(String value49) {
		this.value49 = value49;
	}

	public String getValue50() {
		return value50;
	}

	public void setValue50(String value50) {
		this.value50 = value50;
	}

	public String getValue1() {
		return value1;
	}

	public void setValue1(String value1) {
		this.value1 = value1;
	}

	public String getValue2() {
		return value2;
	}

	public void setValue2(String value2) {
		this.value2 = value2;
	}

	public String getValue3() {
		return value3;
	}

	public void setValue3(String value3) {
		this.value3 = value3;
	}

	public String getValue4() {
		return value4;
	}

	public void setValue4(String value4) {
		this.value4 = value4;
	}

	public String getValue5() {
		return value5;
	}

	public void setValue5(String value5) {
		this.value5 = value5;
	}

	public String getValue6() {
		return value6;
	}

	public void setValue6(String value6) {
		this.value6 = value6;
	}

	public String getValue7() {
		return value7;
	}

	public void setValue7(String value7) {
		this.value7 = value7;
	}

	public String getValue8() {
		return value8;
	}

	public void setValue8(String value8) {
		this.value8 = value8;
	}

	public String getValue9() {
		return value9;
	}

	public void setValue9(String value9) {
		this.value9 = value9;
	}

	public String getValue10() {
		return value10;
	}

	public void setValue10(String value10) {
		this.value10 = value10;
	}

	public String getValue11() {
		return value11;
	}

	public void setValue11(String value11) {
		this.value11 = value11;
	}

	public String getValue12() {
		return value12;
	}

	public void setValue12(String value12) {
		this.value12 = value12;
	}

	public String getValue13() {
		return value13;
	}

	public void setValue13(String value13) {
		this.value13 = value13;
	}

	public String getValue14() {
		return value14;
	}

	public void setValue14(String value14) {
		this.value14 = value14;
	}

	public String getValue15() {
		return value15;
	}

	public void setValue15(String value15) {
		this.value15 = value15;
	}

	public String getValue16() {
		return value16;
	}

	public void setValue16(String value16) {
		this.value16 = value16;
	}

	public String getValue17() {
		return value17;
	}

	public void setValue17(String value17) {
		this.value17 = value17;
	}

	public String getValue18() {
		return value18;
	}

	public void setValue18(String value18) {
		this.value18 = value18;
	}

	public String getValue19() {
		return value19;
	}

	public void setValue19(String value19) {
		this.value19 = value19;
	}

	public String getValue20() {
		return value20;
	}

	public void setValue20(String value20) {
		this.value20 = value20;
	}

	public String getValue21() {
		return value21;
	}

	public void setValue21(String value21) {
		this.value21 = value21;
	}

	public String getValue22() {
		return value22;
	}

	public void setValue22(String value22) {
		this.value22 = value22;
	}

	public String getValue23() {
		return value23;
	}

	public void setValue23(String value23) {
		this.value23 = value23;
	}

	public String getValue24() {
		return value24;
	}

	public void setValue24(String value24) {
		this.value24 = value24;
	}

	public String getValue25() {
		return value25;
	}

	public void setValue25(String value25) {
		this.value25 = value25;
	}

	public String getValue26() {
		return value26;
	}

	public void setValue26(String value26) {
		this.value26 = value26;
	}

	public String getValue27() {
		return value27;
	}

	public void setValue27(String value27) {
		this.value27 = value27;
	}

	public String getValue28() {
		return value28;
	}

	public void setValue28(String value28) {
		this.value28 = value28;
	}

	public String getValue29() {
		return value29;
	}

	public void setValue29(String value29) {
		this.value29 = value29;
	}

	public String getValue30() {
		return value30;
	}

	public void setValue30(String value30) {
		this.value30 = value30;
	}

	public String getValue31() {
		return value31;
	}

	public void setValue31(String value31) {
		this.value31 = value31;
	}

	public String getValue32() {
		return value32;
	}

	public void setValue32(String value32) {
		this.value32 = value32;
	}

	public String getValue33() {
		return value33;
	}

	public void setValue33(String value33) {
		this.value33 = value33;
	}

	public String getValue34() {
		return value34;
	}

	public void setValue34(String value34) {
		this.value34 = value34;
	}

	public String getValue35() {
		return value35;
	}

	public void setValue35(String value35) {
		this.value35 = value35;
	}

	public String getValue36() {
		return value36;
	}

	public void setValue36(String value36) {
		this.value36 = value36;
	}

	public String getValue37() {
		return value37;
	}

	public void setValue37(String value37) {
		this.value37 = value37;
	}

	public String getValue38() {
		return value38;
	}

	public void setValue38(String value38) {
		this.value38 = value38;
	}

	public String getValue39() {
		return value39;
	}

	public void setValue39(String value39) {
		this.value39 = value39;
	}

	public String getValue40() {
		return value40;
	}

	public void setValue40(String value40) {
		this.value40 = value40;
	}

	public String getXlsUrl() {
		return xlsUrl;
	}

	public void setXlsUrl(String xlsUrl) {
		this.xlsUrl = xlsUrl;
	}

	public String getIsexecl1() {
		return isexecl1;
	}

	public void setIsexecl1(String isexecl1) {
		this.isexecl1 = isexecl1;
	}

	public String getIsexecl2() {
		return isexecl2;
	}

	public void setIsexecl2(String isexecl2) {
		this.isexecl2 = isexecl2;
	}

	public String getIseverymouth() {
		return iseverymouth;
	}

	public void setIseverymouth(String iseverymouth) {
		this.iseverymouth = iseverymouth;
	}

	public String getIsarticle() {
		return isarticle;
	}

	public void setIsarticle(String isarticle) {
		this.isarticle = isarticle;
	}

	public String getIscolums() {
		return iscolums;
	}

	public void setIscolums(String iscolums) {
		this.iscolums = iscolums;
	}

	public String getIsNews() {
		return isNews;
	}

	public void setIsNews(String isNews) {
		this.isNews = isNews;
	}

	public String getIsURL() {
		return isURL;
	}

	public void setIsURL(String isURL) {
		this.isURL = isURL;
	}

	@Column(nullable = false)
	private Long columnId;

	@ManyToOne
	@JoinColumn(name = "columnId", insertable = false, updatable = false)
	private ConfValue cv;
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public ConfValue getCv() {
		return cv;
	}

	public void setCv(ConfValue cv) {
		this.cv = cv;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public Integer getGoodtimes() {
		return goodtimes;
	}

	public void setGoodtimes(Integer goodtimes) {
		this.goodtimes = goodtimes;
	}

	public Integer getReadTimes() {
		return readTimes;
	}

	public void setReadTimes(Integer readTimes) {
		this.readTimes = readTimes;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getOriginAddress() {
		return originAddress;
	}

	public void setOriginAddress(String originAddress) {
		this.originAddress = originAddress;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getColumnId() {
		return columnId;
	}

	public void setColumnId(Long columnId) {
		this.columnId = columnId;
	}
	public String getOpenStatus() {
		return openStatus;
	}

	public void setOpenStatus(String openStatus) {
		this.openStatus = openStatus;
	}


	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getFalseCreateTime() {
		return falseCreateTime;
	}

	public void setFalseCreateTime(String falseCreateTime) {
		this.falseCreateTime = falseCreateTime;
	}

	public String getDepars() {
		return depars;
	}

	public void setDepars(String depars) {
		this.depars = depars;
	}


	public String getFileTypes() {
		return fileTypes;
	}

	public void setFileTypes(String fileTypes) {
		this.fileTypes = fileTypes;
	}


	public String getTopTime() {
		return topTime;
	}

	public void setTopTime(String topTime) {
		this.topTime = topTime;
	}

	public String getTransforms() {
		return transforms;
	}

	public void setTransforms(String transforms) {
		this.transforms = transforms;
	}

	public String getBeTopString() {
		return beTopString;
	}

	public void setBeTopString(String beTopString) {
		this.beTopString = beTopString;
	}

	public String getIsRed() {
		return isRed;
	}

	public void setIsRed(String isRed) {
		this.isRed = isRed;
	}
	

	public String getIsSignNews() {
		return isSignNews;
	}

	public void setIsSignNews(String isSignNews) {
		this.isSignNews = isSignNews;
	}

	public String getSignStatus() {
		return signStatus;
	}

	public void setSignStatus(String signStatus) {
		this.signStatus = signStatus;
	}

	public String getTeams() {
		return teams;
	}

	public void setTeams(String teams) {
		this.teams = teams;
	}

	public String[] getAssociations() {
		return associations;
	}

	public void setAssociations(String[] associations) {
		this.associations = associations;
	}

	public String[] getAssocGrops() {
		return assocGrops;
	}

	public void setAssocGrops(String[] assocGrops) {
		this.assocGrops = assocGrops;
	}

	public String getSignDepartment() {
		return signDepartment;
	}

	public void setSignDepartment(String signDepartment) {
		this.signDepartment = signDepartment;
	}
	
}
